package com.muyu.remote.factory;

import com.muyu.common.core.domain.Result;
import com.muyu.remote.RemoteAddRessFileService;
import org.springframework.cloud.openfeign.FallbackFactory;



public class RemoteAddRessFileFactory implements FallbackFactory<RemoteAddRessFileService> {


    @Override
    public RemoteAddRessFileService create(Throwable cause) {
        return new RemoteAddRessFileService() {
            @Override
            public Result<String> removeAlyVideo(String id) {
                return Result.error("删除视频失败，原因：" + cause.getMessage());
            }
        };
    }
}
